import type { Router } from 'vue-router';
import { setupTagViewGuard } from '~/router/guard/tagViewGuard';
import { setupAuthenticateGuard } from '~/router/guard/authenticateGuard.ts';

/**
 * 安装路由守卫
 * @param router
 */
export function setupRouterGuard(router: Router) {
  setupTagViewGuard(router);
  setupAuthenticateGuard(router);
}
